home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Science / µSim 1.0b5 folder / source / Input.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-30  |  1013 b   |  38 lines  |  [TEXT/MMCC]

  1.  
  2. #ifndef __FABCURSORBALLOON__
  3. #include    "CursorBalloon.h"
  4. #endif
  5.  
  6.  
  7. /* kMinDocDim is used to limit the minimum dimension of a window when GrowWindow
  8.     is called. */
  9. enum {
  10. kMinDocDim    = 63
  11. };
  12.  
  13.     
  14. #define    MIN(a, b)    ((a) < (b) ? (a) : (b))
  15.     
  16. typedef struct {
  17.     FabWindowRecord    docWindow;
  18.     TEHandle        docTE;
  19.     ControlHandle    docVScroll;
  20.     ControlHandle    docHScroll;
  21. } DocumentRecord, *DocumentPeek;
  22.  
  23. void IOHome(void);
  24. void IOEnd(void);
  25. void IOPgUp(void);
  26. void IOPgDn(void);
  27. void DoGrowWindow(WindowPtr window, EventRecord    *event);
  28. void DoZoomWindow(WindowPtr window);
  29. void ResizeWindow(WindowPtr window);
  30. void DoUpdateWindow(WindowPtr window);
  31. void DoActivateWindow(WindowPtr window, Boolean becomingActive);
  32. void DoContentClick(WindowPtr window, EventRecord *event);
  33. void DoKeyDown(WindowPtr window, unsigned char key, Boolean);
  34. void GetTERect(WindowPtr window, RectPtr teRect);
  35. void AdjustScrollbars(WindowPtr window, Boolean needsResize);
  36. void CloseIO(WindowPtr w);
  37. void RecalcIO(FabWindowPtr w, RgnBalloonCursPtr theObj);
  38.